import Layout from '@/layout'

const chartsRouter = {

  path: '/community',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Community',
  meta: {
    title: '社区资产',
    icon: 'chart'
  },
  children: [
    {
      path: '/CommunityManage',
      component: () => import('@/views/community/CommunityManage'),
      name: 'CommunityManage',
      meta: {
        title: '小区信息',
        roles: ['admin'],
        icon:'el-icon-office-building'
      }
    },
    {
      path: '/BuildingManage',
      component: () => import('@/views/community/BuildingManage'),
      name: 'BuildingManage',
      meta: {
        title: '楼栋信息',
        roles: ['admin'],
        icon: 'el-icon-school'
      }
    },
    {
      path: '/UnitManage',
      component: () => import('@/views/community/UnitManage'),
      name: 'UnitManage',
      meta: {
        title: '单元信息',
        roles: ['admin'],
        icon: 'el-icon-film'
      }
    },
    {
    path: '/RoomView',
    component: () => import('@/views/community/RoomView'),
    name: 'RoomView',
    meta: {
    title: '房间信息',
      roles: ['admin'],
      icon: 'el-icon-house'
  }
}
    // {
    //   path: 'keyboard',
    //   component: () => import('@/views/charts/keyboard'),
    //   name: 'KeyboardChart',
    //   meta: { title: 'Keyboard Chart', noCache: true }
    // },
    // {
    //   path: 'line',
    //   component: () => import('@/views/charts/line'),
    //   name: 'LineChart',
    //   meta: { title: 'Line Chart', noCache: true }
    // },
    // {
    //   path: 'mix-chart',
    //   component: () => import('@/views/charts/mix-chart'),
    //   name: 'MixChart',
    //   meta: { title: 'Mix Chart', noCache: true }
    // }
  ]

}

export default chartsRouter

